﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
namespace DAO
{
    public class ORDERDAO
    {
        public ORDER[] layBang()
        {
            DataClassesNHOMMUADataContext db = new DataClassesNHOMMUADataContext();
            return db.usp_SelectOrderAll().ToArray();
        }
        public ORDER[] SelectOrderByID(int idmember)
        {
            DataClassesNHOMMUADataContext db = new DataClassesNHOMMUADataContext();
            return db.usp_SelectOrderByID(idmember).ToArray();
        }
    }
}
